package br.com.unitunes.model;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity(name = "EXECUTAVEL")
@PrimaryKeyJoinColumn(name = "EXECUTAVEL_ID", referencedColumnName = "MIDIA_ID")
public abstract class Executavel extends Midia {
	
	@Temporal(TemporalType.TIME) 
	@Column(name = "DURACAO") 
	protected Date duracao;

	public Date getDuracao() {
		return duracao;
	}

	public void setDuracao(Date duracao) {
		this.duracao = duracao;
	}
}
